<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<!--<button id="id1" onclick="displayDate()">点这里</button>-->
		<button id="id1">点这里</button>

		<script type="text/javascript">
			document.getElementById("id1").onclick=function(){
//				window.open("http://www.baidu.com");
				window.location.href="http://www.baidu.com";
			}

			//			function displayDate() {
			//				window.open("http://www.baidu.com");
			//			}
		</script>
	</body>

</html>